#include<iostream>
using namespace std;
typedef long long LL;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		long long n;e
		cin >> n;
		cout <<(LL) 6 * n << " " << 3 << endl;
		cout << n << " " << 2 * n << " " << 3 * n << endl;
	}
	return 0;
}